package com.supermarket.manage.common.dto;

/**
 * 通用状态码
 *
 * @author Faxon
 * @version 1.0
 * @date 2020-02-13 10:59
 **/
public class CodeStatus {
    /**
     * 请求成功
     */
    public static final int OK = 20000;

    /**
     * 请求失败
     */
    public static final int FAIL = 20002;

    /**
     * 熔断请求
     */
    public static final int BREAKING = 20004;

    /**
     * 非法请求
     */
    public static final int ILLEGAL_REQUEST = 50000;

    /**
     * 权限不足
     */
    public static final int INSUFFICIENT_PERMISSIONS = 50008;

    /**
     * 其他客户登录
     */
    public static final int OTHER_CLIENTS_LOGGED_IN = 50012;

    /**
     * 令牌已过期
     */
    public static final int TOKEN_EXPIRED = 50014;

}